#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <vector>
using namespace std;

int main()
{
    int n = 0;
    cin >> n;
    vector<int> v(n, 0);
    int sum = 0;
    for (int i = 0;i < n;i++)
    {
        cin >> v[i];
        sum += v[i];
    }
    cerr << "sum=" << sum << endl;
    if (sum % 2 != 0)
    {
        cout << "false" << endl;
        return 0;
    }
    vector<vector<bool>> dp(n + 1, vector<bool>(sum / 2 + 1, true));
    for (int i = 1;i <= n;i++)
    {
        for (int j = 1;j <= sum / 2;j++)
        {
            //cerr<<"["<<i<<","<<j<<"]"<<endl;
            if (j - v[i] >= 0 && dp[i - 1][j - v[i]] == true) dp[i][j] = true;
            else dp[i][j] = dp[i - 1][j];
        }
    }
    if (dp[n][sum / 2] == true)
    {
        cout << "true" << endl;
    }
    else
    {
        cout << "false" << endl;
    }
    return 0;
}
